<template>
  <div class="home">
    <header class="header">
        <span class="iconfont icon-dianzan"></span>
        <span>猫眼电影</span>
        <span class="iconfont icon-caidan"></span>
    </header>
    <router-view/>
    <footer class="footer">
        <router-link to="/film">
            <div>
                <span class="iconfont icon-dianying"></span>
                <h1>电影/影院</h1>
            </div>
        </router-link>
         <router-link to="/viduesmax">
             <div>
                <span class="iconfont icon-shipin"></span>
                <h1>视频</h1>
             </div>
        </router-link>
         <router-link to="/viduesmin">
             <div>
                <span class="iconfont icon-shipin1"></span>
                <h1>小视频</h1>
             </div>
            
        </router-link>
         <router-link to="/my">
            <div>
                <span class="iconfont icon-xiazai4"></span>
                <h1>我的</h1>
            </div>
        </router-link>
    </footer>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.home{
    // background-color: #ccc;
    height: 100%;
}
.header{
  width: 100%;
  height: 50px;
  background-color: #d44439;
  padding: 5px 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  span{
    line-height: 40px;
    font-size: 20px;
    color: #f1f2f3;
    &.iconfont{
      font-size: 25px;
    }
  }
}
.footer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 49px;
    background-color: #f1f2f3;
    padding: 2px 10px;
    border: 1PX solid #cccccc;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
    a{
        &.router-link-active{
        color: #d44439;
        }
    }
    
    div{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        h1{
            margin-top: 6px;
        }
    }
}
</style>